package com.gzcstec.yien.service;

import com.gzcstec.yien.dao.UserDao;
import com.gzcstec.yien.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * user业务实体类
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public User getById(int id) {
        return userDao.getById(id);
    }

    public int addUser(User user) {
        return userDao.addUser(user);
    }


}
